import Login from "../pages/login";
import Layout from "../pages/layout"
import Backupset from "../pages/backupset"
import { createBrowserRouter } from "react-router-dom"
import PrivateRoute from "./privateRoute.tsx";

{/* 路由配置 */ }
const rooter = createBrowserRouter([
  {
    path: '/',
    element: <Login />
  },
  {
    path: '/layout',
    element: (
      <PrivateRoute>
        <Layout />
      </PrivateRoute>
    )
  },
  {
    path: '/Backupset',
    element: (
        <Backupset />
    )
  },
])

export default rooter